﻿using UnityEngine;
using System.Collections;

public class UserPlaying : MonoBehaviour
{

	
	// Update is called once per frame
	void Update ()
	{
		if (Input.GetKeyUp(KeyCode.G))
		{
			int rand = Random.Range(1,8);
			KnapsackPanel.GetInstance.StoreGood(rand);
		}
        if (Input.GetKeyUp(KeyCode.S))
        {
            KnapsackPanel.GetInstance.ShowPanel();
        }
        if (Input.GetKeyUp(KeyCode.H))
        {
            KnapsackPanel.GetInstance.HidePanel();
        }
	}
}
